package com.apexedu.eas.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.apexedu.eas.annotation.Query;
import com.apexedu.eas.entity.TAopLog;
import com.apexedu.framework.util.DBUtil;
import com.apexedu.framework.util.Pager;

@Repository
public class AopLogDao extends BasisDao<TAopLog, String> { 

	//查询
	@Query(value = "select uuid as id, time_Diff as timeDiff from tbl_aop_log where START_TIME > ?" )
	public List<TAopLog> getListByGtTime(String time) {
		return null;
	}
	//不替换表名查询  分页查询
	@Query(value = "select uuid as id, time_Diff as timeDiff from tbl_aop_log", nativeQuery = true ,count=false , replace=false , pager=true)
	public List<TAopLog> getAll(Pager pager) {
		return null;
	}
	//替换表名查询
	@Query(value = "select uuid as id, time_Diff as timeDiff from @TAopLog", nativeQuery = true ,count=false , replace=true)
	public List<TAopLog> getAll1() {
		return null;
	}
	//计数查询  
	@Query(value = "select count(*) from @TAopLog ", nativeQuery = true ,count=true , replace=false)
	public long getCount() {
		return 0;
	}
	//替换表名并执行update
	@Query(value = "update @TAopLog set uuid = ' 123120' where uuid = ' 1230' ", nativeQuery = true , replace=true , update =true)
	public long update() {
		return 0;
	}
	//执行select hql
	@Query(value = "from TAopLog ", nativeQuery = false , update =false)
	public List<TAopLog> getAllByHql() {
		return null;
	}
	//执行update hql
	@Query(value = "update TAopLog set id = '0' where id = '0' ", nativeQuery = false , update =true)
	public int updateByHql() {
		return 0;
	}
	
	
	
	
/*

	@Override
	public List<TAopLog> queryAllBeanList(String sql, Object... params) {
		return DBUtil.queryAllBeanList(sql, this.getClassType(), params);
	}

	@Override
	public List<TAopLog> queryAllBeanList(String sql) {
		return DBUtil.queryAllBeanList(sql, this.getClassType());
	}

	@Override
	public TAopLog queryBean(String sql) {
		return DBUtil.queryBean(sql, this.getClassType());
	}

	@Override
	public TAopLog queryBean(String sql, Object... params) {
		
		return DBUtil.queryBean(sql, this.getClassType(), params);
	}
	
	@Override
	public int count(String sql, Object... params) {
		return DBUtil.count(sql, params);
	}
	@Override
	public long countForLong(String sql, Object... params) {
		// TODO Auto-generated method stub
		return DBUtil.countForLong(sql, params);
	}*/

}
